﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BuddHa.Camera.Protcol.DH.Models
{
    public class FristAccountsAuthorizeModel : BaseModel
    {
        public FristAccountsAuthorizeModel() : base("/videoService/accounts/authorize", EnumRequestMethod.Post)
        {

        }
    }

    public class FristAccountsAuthorizeRequest
    {
        [JsonPropertyName("userName")]
        public string UserName { get; set; }

        [JsonPropertyName("clientType")]
        public string ClientType { get; set; } = "winpc";

        [JsonPropertyName("ipAddress")]
        public string IpAddress { get; set; }
    }

    public class FristAccountsAuthorizeResponse
    {
        [JsonPropertyName("realm")]
        public string Realm { get; set; }

        [JsonPropertyName("randomKey")]
        public string RandomKey { get; set; }

        [JsonPropertyName("encryptType")]
        public string EncryptType { get; set; }

        [JsonPropertyName("method")]
        public string Method { get; set; }
    }
}
